<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../../css/common.css">
    <link rel="stylesheet" href="../../css/publish.css">
    <title>尚街</title>
</head>
<style>

</style>
<body>
    <div id="page">
        <div class="pageTop">
            <img src="../../images/profile/right_arrow.png" alt="" class='backArrow'>
            <span class="pageTitle" style="margin-left:0% !important;">点评</span>
            <span class="pageinstr"></span>
        </div>
        <div class="publish">
            <div class='publish_head'>
                    <textarea name="" id="" cols="30" rows="10" placeholder="请输入您的专业评论，限50字内" maxlength="200"></textarea>
                    <span class="countlimit">20/50</span>
            </div>   
            <div class="commondiv"></div>
            <div class="publish_foot">
                <p>风格标签 <span>(最多可以选4个)</span></p>
                <div class="tags">
                    <span class="shenglv tag_active">可爱</span>
                    <span class="shenglv">可爱</span>
                    <span class="shenglv">可爱</span>
                    <span class="shenglv">可爱</span>
                    <span class="shenglv">中国风</span>
                    <span class="shenglv">可爱</span>
                    <span class="shenglv">可爱</span>
                    <span class="shenglv">可爱</span>
                    <span class="shenglv">可爱</span>
                </div>
               
            </div>
        </div>
        <div class="tijiaodianping">提交点评</div>
    </div>
    <script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
    <script src="../../js/back.js"></script>
    <script>
    $(".shenglv").click(function(){
        console.log($('.tags').children('.tag_active').length>=4)
        if($('.tags').children('.tag_active').length>=4) return

        if($(this).hasClass('tag_active')) {
            $(this).removeClass('tag_active') 
            return
        }else{
            $(this).addClass('tag_active')

        }      
    })
</script> 
</body>
</html>